﻿<%@ Page Title="" Language="C#" ClientIDMode="Static" MasterPageFile="~/User/User.Master" AutoEventWireup="true" CodeBehind="ZL_CP_Query.aspx.cs" Inherits="CoolERP_Web.User.ZL_CP_Query" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
        <td class=tbHead_L></td>
        <td class=tbHead_M><div><b>产品管理</b></div></td>
        <td class=tbHead_R></td>
    </tr>
    <tr>
        <td class=tbBody_L></td>
        <td class=tbBody_M>
            <asp:Panel ID="panQuery" runat="server">
            <ul class=tags style="width:100%;">
                <li class=liTitle><div>查询条件</div></li>
            </ul>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <table class="grvCSS" cellspacing="0" cellpadding=2 border="1" style="width:100%;border-collapse:collapse;">
                <tr>
                    <td>产品编号：<asp:TextBox ID="tbBH" runat="server" CssClass="textbox" MaxLength="16"></asp:TextBox></td>
                    <td>产品线：<asp:DropDownList ID="ddlCPXBH" runat="server" AutoPostBack="True" CssClass="dropdown" OnSelectedIndexChanged="ddlCPXBH_SelectedIndexChanged1"/></td>
                    <td>产品类型：<asp:DropDownList ID="ddlCPLXBH" runat="server" CssClass="dropdown"/></td>
                    <td><asp:ImageButton ID="btnQuery" runat="server" ImageUrl="~/Images/Common/btn_query0.png" OnClick="btnQuery_Click" /></td>
                </tr>
                <tr>
                    <td>产品核心词：<asp:DropDownList ID="ddlCPMCBH" runat="server" AutoPostBack="True" CssClass="dropdown" OnSelectedIndexChanged="ddlCPMCBH_SelectedIndexChanged1"><asp:ListItem Value="">请选择</asp:ListItem></asp:DropDownList></td>
                    <td>产品系列：<asp:DropDownList ID="ddlCPXLBH" runat="server" CssClass="dropdown"><asp:ListItem Value="">请选择</asp:ListItem></asp:DropDownList></td>
                    <td>产品型号：<asp:DropDownList ID="ddlCPXHBH" runat="server" CssClass="dropdown"><asp:ListItem Value="">请选择</asp:ListItem></asp:DropDownList></td>
                    <td><asp:ImageButton ID="btnReset" runat="server" ImageUrl="~/Images/Common/btn_reset0.png" OnClick="btnReset_Click" /></td>
                </tr>
            </table>        
        </ContentTemplate>
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="ddlCPMCBH" EventName="SelectedIndexChanged" />
            <asp:AsyncPostBackTrigger ControlID="ddlCPXBH" EventName="SelectedIndexChanged" />
        </Triggers>
        </asp:UpdatePanel>
            </asp:Panel>
            <ul class=tags style="width:100%;">
                <li class=liTitle><div>产品列表</div></li>
                <li class=liRight><asp:ImageButton ID="btnAdd" runat="server" OnClick="btnAdd_Click" ImageUrl="~/Images/Common/btn_add0.png" PostBackUrl="~/User/ZL_CP_Edit.aspx" />
                <asp:ImageButton ID="btnDel" runat="server" ImageUrl="~/Images/Common/btn_del0.png" OnClick="btnDel_Click" OnClientClick="return isCheck('GridView1');" /></li>
            </ul>
            <asp:UpdatePanel ID="UpdatePanel2" runat="server">
            <ContentTemplate>
            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" AllowPaging="True" CssClass="grvCSS" Width="100%"
                OnRowDataBound="GridView1_RowDataBound" DataKeyNames="ID" PageSize="20">
                <Columns>
                    <asp:TemplateField ShowHeader="False">
                        <HeaderTemplate><label><input type="checkbox" onclick="checkAll('GridView1',this)" />全选</label></HeaderTemplate>
                        <ItemTemplate><input runat=server type=checkbox id="chkSel" name="chkSel" value='<%# Eval("ID")%>' /></ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="CPLXMC" HeaderText="产品类型"/>
                    <asp:TemplateField HeaderText="产品编号">
                    <ItemTemplate><asp:HyperLink ID="hplyDetail" runat=server></asp:HyperLink></ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="CPMC" HeaderText="产品名称"/>
                    <asp:BoundField DataField="CPGG" HeaderText="产品规格"/>
                    <asp:BoundField DataField="YS" HeaderText="颜色"/>
                    <asp:BoundField DataField="JBDWMC" HeaderText="单位"/>
                    <asp:BoundField DataField="CPXLMC" HeaderText="产品系列"/>
                    <asp:BoundField DataField="CPXHMC" HeaderText="产品型号"/>
                    <asp:BoundField DataField="CPMCMC" HeaderText="产品核心词"/>
                    <asp:BoundField DataField="BZ" HeaderText="备注"/>
                </Columns>
                <PagerSettings Visible=false />
            </asp:GridView><div style="clear:both"></div>
            <webdiyer:AspNetPager ID="AspNetPager1" runat="server" AlwaysShow="True" CssClass="pager" UrlPaging="false" ShowCustomInfoSection="Left"
                FirstPageText="首页" LastPageText="尾页" PrevPageText="前页" NextPageText="后页" OnPageChanged="AspNetPager1_PageChanged" 
                TextAfterPageIndexBox="页" TextBeforePageIndexBox="转到" PageIndexBoxType="TextBox" ShowPageIndexBox="Always" 
                SubmitButtonText="Go" CustomInfoHTML="共%RecordCount%条数据，每页%PageSize%条，共%PageCount%页，当前为第%CurrentPageIndex%页">
            </webdiyer:AspNetPager>
            <asp:Panel ID="panMsg" runat="server" ClientIDMode=Static CssClass="msg24_attention" Visible=false>无相关数据</asp:Panel>
            </ContentTemplate>
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID="btnQuery" EventName="Click" />
                <asp:AsyncPostBackTrigger ControlID="btnDel" EventName="Click" />
            </Triggers>
        </asp:UpdatePanel>
        </td>
        <td class=tbBody_R></td>
    </tr>
    <tr>
        <td class=tbFoot_L></td>
        <td class=tbFoot_M></td>
        <td class=tbFoot_R></td>
    </tr>
</table>
</asp:Content>
